package com.atguigu.boot.controller;

import com.atguigu.boot.bean.Car;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : wenchao.long
 * @date : Created in 2021/02/02 15:08 周二
 * @description :
 */
@RestController
@AllArgsConstructor
public class CarController {

    private final Car car;

    @GetMapping("/car")
    public Car getCar() {
        return car;
    }
}
